package com.wpl.service.impl;

import com.wpl.bean.Workorder;
import com.wpl.dao.WorkorderMapper;
import com.wpl.service.IWorkorderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WorkorderServiceImpl implements IWorkorderService {

    @Resource
    private WorkorderMapper workorderMapper;

    @Override
    public List<Workorder> findAll() {
        return workorderMapper.selectByExample(null);
    }

    @Override
    public int insert(Workorder workorder) {
        return workorderMapper.insertSelective(workorder);
    }
}
